/*
 * gbdt_param.cc
 *
 *  Created on: 2012-7-21
 *      Author: wanghaox
 */

#include "gbdt_param.h"
#include "memory.h"

bool GbdtParam::init(int instance_num) {
	_instance_num = instance_num;
	_instance_lables = new double[_instance_num];
	_instance_residuals = new double[_instance_num];
	_instance_prediction = new double[_instance_num];

	memset(_instance_residuals, 0, _instance_num*sizeof(_instance_residuals));
	memset(_instance_lables, 0, _instance_num*sizeof(_instance_lables));
	memset(_instance_prediction, 0, _instance_num*sizeof(_instance_lables));

	return true;
}

